package cn.edu.thu.laud.lasql.parser;

import java.nio.ByteBuffer;
import java.util.List;

import cn.edu.thu.laud.lasql.function.iface.LaSQLLocalFunction;
import cn.edu.thu.laud.lasql.function.iface.LaSQLRemoteFunction;


public class LaSQLRemoteFunctionParser extends LaSQLFunctionParser{

	public LaSQLRemoteFunctionParser(String className, List<String> parameters) {
		super(className,parameters);
		
	}

	public LaSQLRemoteFunctionParser(String string) {
		super(string);
	}
	
/**
 * run the remote function 
 * <br>then return null always.
 */
	public ByteBuffer getResult() throws Exception{
		 ((LaSQLRemoteFunction)Class.forName(className).newInstance()).executeRemote(this.getParameters());
		 return null;
	}

	


}
